
'use strict';

/**
 * 批量上传底库照片日志
 */
const batchLogModel = require('../models/bactchLog.model')
const Code = require('../common/error_code');
async function latest_log(ctx){
    const result = await batchLogModel.find({}).sort({m_at:-1}).limit(5)
    return ctx.success(Code.REQUEST_SUCCESS('查询成功'),result)
}
exports.latest_log = latest_log